﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class clickButton : MonoBehaviour {
	public Button mButton;
	// Use this for initialization
	void Start () {
		Button btn = mButton.GetComponent<Button>();
		btn.onClick.AddListener(onClick);
	}
	void onClick(){
		Application.LoadLevel(1);
	}
	// Update is called once per frame
	void Update () {
		
	}
}
